<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script type="module">
    import {
      onCLS,
      onINP,
      onLCP,
    } from 'https://unpkg.com/web-vitals@4/dist/web-vitals.attribution.js?module'

    console.log('web-vitals')

    onCLS(console.log)
    onINP(console.log)
    onLCP(console.log)

    window.addEventListener("pageshow", function (event) {
      requestAnimationFrame(() => {
        ["load"].forEach(function (type) {
          const reportData = {
            type: "performance",
            subType: type,
            pageUrl: window.location.href,
            startTime: performance.now() - event.timeStamp,
          }
          console.log(reportData)

        })
      })
    });
  </script>
</head>

<body>



</body>

</html>